<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ page import="com.lmpop.trade.tb_returngoodsdetail.Tb_returngoodsdetailInfo" %>
<%@ page import="com.lmpop.trade.tb_returngoods.Tb_returngoodsInfo" %>
<%@ page import="java.util.*" %>
<%
	request.setCharacterEncoding("UTF-8");

	Tb_returngoodsdetailInfo returngoodsdetailInfo = new Tb_returngoodsdetailInfo();
	Tb_returngoodsInfo returngoodsInfo = new Tb_returngoodsInfo();

	String  info_id = "";
	if(request.getParameter("info_id")!=null && !request.getParameter("info_id").equals("")){
		info_id = request.getParameter("info_id");
	}
	String reason = "";
	String returnstate = "";
	List goodslist = returngoodsInfo.getListByPk(info_id);
	if(goodslist!=null && goodslist.size()>0){
		Hashtable goodsmap = new Hashtable();
			goodsmap = (Hashtable)goodslist.get(0);
			if(goodsmap.get("reason")!=null) reason = goodsmap.get("reason").toString();
	}

%>

<form action="/doTradeReg.do" method="post" name="addForm">
<div class="f-right w750">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#eddfea">
      <tr>
        <td width="5%" height="40" align="center"><img src="/program/member/index/images/icon1.gif" /></td>
        <td width="75%"><h3>修改退货申请</h3></td>
        <td width="20%"><a href="" class="cZs"></a></td>
      </tr>
    </table>
    <div class="ts"> <img src="/program/member/index/images/ts.gif" /> 退货申请需要通过卖家审核。 </div>
    <!--Content部分开始-->
    <DIV class="focus-area-setTab">
     
      <DIV class="focus-area-setTab-content">
        <DIV id=con_one_1 >
          <table width="100%" border="0" cellspacing="0" bgcolor="#fcf8fb" cellpadding="0" style="border-bottom:3px solid #eddfea; padding-left:15px;">
            <tr bgcolor="#fcf8fb">
              <td height="100" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:12px;">
                  <tr>
                    <td height="17" colspan="2" class="art_col">&nbsp;</td>
                  </tr>
                 
                  <tr>
                    <td height="38" class="art_col">退货商品:</td>
                    <td>
						<%
							String goods_id="",goods_name="";
							List list = returngoodsdetailInfo.getListByInfoId(info_id);
							if(list!=null && list.size()>0){
								Hashtable map = new Hashtable();
								for(int i=0;i<list.size();i++){
									map = (Hashtable)list.get(i);
									if(map.get("goods_id")!=null) goods_id = map.get("goods_id").toString();
									if(map.get("goods_name")!=null) goods_name = map.get("goods_name").toString();
								
						%>
								<font color="#D0272E"><%=i+1%>:&nbsp;<%=goods_name%></font><br/>
						<%
								}
							}
						%>
						
						
                    </td>
                  </tr>
                  <div id="goods_table"></div>
                  <tr>
                    <td height="38" class="art_col">退货原因<font color="red">*</font></td>
                    <td WIDTH=650px>
						<textarea name="reason" id="reason"><%=reason%></textarea>
						<script type="text/javascript" src="/program/plugins/ckeditor/ckeditor.js"></script>
						<script type="text/javascript">
							CKEDITOR.replace('reason');
						</script>	
                    </td>
                  </tr>
                  <tr>
                    <td height="38"></td>
                    <td></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50" align="center">
				<input type="hidden" name="bpm_id" value="3081" />
				<input type="hidden" name="pub_state" value="0" />
				<input type="hidden" name="info_id" value="<%=info_id%>" />	
				<input type="button" name="Submit2" value="确认提交" class="button2" onclick="return chekedform()" />
				<input class="button2" type="button" name="tradeRut" value="返    回" onclick="window.location.href='index.jsp?menu_id=<%=menu_id%>';"/>
              </td>
            </tr>
          </table>
        </DIV>
       
      </DIV>
    </DIV>
  </div>
</div>
</form>